const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 访问的时候短一点好理解
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  // 建立用户头像的映射
  staffPhoto: state => state.user.userInfo.staffPhoto,
  companyId: state => state.user.userInfo.companyId
  // token: state => state.user.token,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name
}
// 全局的gitters
export default getters
